package com.arpa.oms.domain.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.arpa.ntocc.common.domain.dto.WarehouseAuthorizationJsonBean;
import com.arpa.wms.domain.entity.BasicEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 默认发货仓库
 * </p>
 *
 * @author wangdong
 * @since 2021-07-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("oms_default_warehouse")
@ApiModel(value="OmsDefaultWarehouse对象", description="默认发货仓库")
public class OmsDefaultWarehouse extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据标识")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "仓库标识")
    @TableField("warehouse_code")
    private String warehouseCode;

    @ApiModelProperty(value = "仓库名称")
    @TableField("warehouse_name")
    private String warehouseName;

    @ApiModelProperty(value = "货主标识")
    @TableField("shipment_code")
    private String shipmentCode;

    @ApiModelProperty(value = "货主名称")
    @TableField("shipment_name")
    private String shipmentName;

    @ApiModelProperty(value = "店铺标识")
    @TableField("shop_code")
    private String shopCode;

    @ApiModelProperty(value = "店铺名称")
    @TableField("shop_name")
    private String shopName;

    @ApiModelProperty(value = "所属组织")
    @TableField("group_code")
    private String groupCode;

    @ApiModelProperty(value = "省标识")
    @TableField("province_code")
    private String provinceCode;

    @ApiModelProperty(value = "省份code")
    @TableField(exist = false)
    private List<String> provinceCodes;

    @ApiModelProperty(value = "省名称")
    @TableField("province_name")
    private String provinceName;

    @ApiModelProperty(value = "省份code")
    @TableField(exist = false)
    private List<String> provinceNames;

    @ApiModelProperty(value = "重量小")
    @TableField("weight_min")
    private BigDecimal weightMin;

    @ApiModelProperty(value = "重量大")
    @TableField("weight_max")
    private BigDecimal weightMax;

    /**
     * 物流公司编码(SF=顺丰、EMS=标准快递、EYB=经济快件、ZJS=宅急送、YTO=圆通 、ZTO=中 通(ZTO)、HTKY=百世汇通、UC=优速、STO=申通、TTKDEX=天天快递、QFKD=全峰、FAST=快捷 、POSTB=邮政小包、 GTO=国通、YUNDA=韵达、JD=京东配送、DD=当当宅配、AMAZON=亚马逊物流、 OTHER=其他)
     */
    @ApiModelProperty("物流公司编码")
    @TableField("logistics_code")
    private String logisticsCode;

    @ApiModelProperty("物流公司名称")
    @TableField("logistics_name")
    private String logisticsName;

    @ApiModelProperty(value = "状态：0启用，1停用")
    @TableField("status")
    private Integer status;


    @ApiModelProperty(value = "登录仓库授权该账号的货主集合")
    @TableField(exist = false)
    private List<String> shipmentCodes;

    @ApiModelProperty(value = "启用库位管理:0不启用，1启用")
    @TableField("location_management")
    private Integer locationManagement;

    @ApiModelProperty(value = "erp customerid")
    @TableField("customerid")
    private String customerid;

    public interface Save {

    }

    public interface Update {

    }
}
